<!DOCTYPE html>
<html>
<head>
  <title>Popcorn Image Plug-in Demo</title>
  <script src="../../popcorn.js"></script>
  <script src="popcorn.image.js"></script>
  <script>
    document.addEventListener( "DOMContentLoaded", function() {

      var p = Popcorn( "#video" )
      .volume( 0 )
      .play()
      .image({
      	// seconds
        start: 1,
        // seconds
        end: 15,
        href: "http://www.drumbeat.org/",
        src: "https://www.drumbeat.org/media//images/drumbeat-logo-splash.png",
        text: "DRUMBEAT",
        target: "video"
      })
      .image({
      	// seconds
        start: 5,
        // seconds
        end: 45,
        // no href
        src: "http://patriciabergeron.net/wp-content/uploads/web.made_.movie_marquee.gif",
        target: "imagediv"
      });
    }, false);

  </script>
</head>
<body>
  <h1 id="qunit-header">Popcorn Image Plug-in Demo</h1>
  <p> Two images will appear at 5 seconds.</p>
  <p> First one (with an overlayed text) will disappear at 15 seconds.</p>
  <p> Second one (without an overlayed text) will disappear at 45 seconds.</p>
  <div>
    <video id="video"
      controls
      width="250px"
      poster="../../test/poster.png">

      <source id="mp4"
        src="../../test/trailer.mp4"
        type='video/mp4; codecs="avc1, mp4a"'>

      <source id="ogv"
        src="../../test/trailer.ogv"
        type='video/ogg; codecs="theora, vorbis"'>

      <p>Your user agent does not support the HTML5 Video element.</p>

    </video>
  </div>
  <div style="width:400px; height:400px" id="imagediv"></div>

</body>
</html>
